import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    breadcrumbF:{},
    breadcrumbS:{}
  },
  mutations: {
    transform(state,payload){
      state.breadcrumbF = payload.item
      state.breadcrumbS = payload.subitem
    }
  },
  getters:{
    smenuName(state){
      return state.breadcrumbF.authName
    },
    smenuiName(state){
      return state.breadcrumbS.authName
    }
  },
  actions: {
  },
  modules: {
  }
})
